<?php

//UMA new
/** @var \Illuminate\Database\Eloquent\Factory $factory */

use App\Models\Nikkei;
use Faker\Generator as Faker;

$factory->define(Nikkei::class, function (Faker $faker) {
    return [
        'date' => date('Y-m-d', strtotime('-1 day')),
        'open' => $faker->randomFloat(1, 0, 1000),
        'high' => $faker->randomFloat(1, 0, 1000),
        'low' => $faker->randomFloat(1, 0, 1000),
        'last' => $faker->randomFloat(1, 0, 1000),
        'change' => $faker->randomFloat(1, 10, 500),
        'settle' => $faker->randomFloat(1, 0, 1000),
        'volume' => $faker->randomFloat(1, 0, 1000),
        'previous_day_open_interest' => $faker->randomFloat(1, 0, 1000)
    ];
});
